package com.example.springboot.service.impl;

import com.example.springboot.entity.Reader;
import com.example.springboot.mapper.ReaderMapper;
import com.example.springboot.service.ReaderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReaderServiceImpl implements ReaderService {

    @Autowired
    ReaderMapper readerMapper;

    @Override
    public List<Reader> listReaders() {
        return readerMapper.listReaders();
    }
}
